<?php 
/**
 * JavaScripts In Header
 */
function webtreats_enqueue_scripts() {
	global $home_slider_page, $cufon_disable;
	if(!is_admin()){
		wp_enqueue_script('jquery-easing' , WEBTREATS_JS . '/jquery.easing.js', array('jquery'));
		wp_enqueue_script('image-load' , WEBTREATS_JS . '/image-load.js', array('jquery'), '1.3');
		
		if(!$cufon_disable){
			wp_enqueue_script( 'cufon-yui', WEBTREATS_JS .'/cufon-yui.js', array('jquery'));
			wp_enqueue_script( 'colaborate', WEBTREATS_JS .'/DejaVu_Sans_Condensed_400.font.js', array('jquery'));
		}

		wp_enqueue_script( 'prettyPhoto', WEBTREATS_JS .'/prettyPhoto/js/jquery.prettyPhoto.js', array('jquery'));
		wp_enqueue_script( 'jquery-tools', WEBTREATS_JS .'/jquery.tools.min.js', array('jquery'));
		wp_enqueue_script( 'galleria', WEBTREATS_JS .'/galleria/galleria.js', array('jquery'));
		wp_enqueue_script( 'galleria-classic', WEBTREATS_JS .'/galleria/themes/classic/galleria.classic.js', array('jquery'));
		wp_enqueue_script( 'custom-js', WEBTREATS_JS .'/custom.js', array('jquery'));
		
		if( (is_home()) || ($home_slider_page) ){
			wp_enqueue_script( 'sliders-js', WEBTREATS_JS .'/sliders.js', array('jquery'));
		}
	}
}

add_action('wp_print_scripts', 'webtreats_enqueue_scripts');

?>